public class demo {
    public static boolean isLeapYear(int year){
        if((0 == year % 4 && 0 != year % 100) || 0 == year % 400){
            return true;
        }else{
            return false;
        }
    }
    public static void main(String[] args) {
    demo d1 = new demo();
        System.out.println(demo.isLeapYear(2008));
    }
}
